<?php include PATH_TPL."/admin/tpl.header.phtml"?>
<div class="main-container inner">
    <div class="main-content">
        <div class="container-fluid">
            <div class="row bt">
                <div class="col-lg-12 bg">
                    <ol class="breadcrumb">
                        <li class="active">
                        <i class="fa  fa-fw fa-reorder"></i>热点专访
                        </li>
                    </ol>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <a class="btn btn-success" href="/admin_interview/add">添加热点</a>
                </div>
                <div class="col-md-6">  

                    <form method="post" action="/admin_interview">
                        <div class="form-group input-group">
                            <input type="text" placeholder="输入专访名称关键词搜索" name="key" class="form-control">
                            <span class="input-group-btn">
                              <button type="button" class="btn btn-default" id="search"><i class="fa fa-search"></i></button>
                            </span>
                        </div>
        </form>
                </div>
            </div>

            <div class="panel-body text-center">
                <table class="table table-hover" id="sample-table-1">
                    <thead>
                        <tr>
                            <td>编号</td>
                            <td>名称</td>
                            <td>添加时间</td>
                            <td>操作</td>
                        </tr>
                    </thead>
                    <?foreach($tDatas as $tRow){?>
                    <tr>
                        <td><?=$tRow['id']?></td>
                        <td><?=$tRow['title']?></td>
                        <td><?=date('Y-m-d H:i:s',$tRow['created'])?></td>
                        <td>
                            <div class="visible-md visible-lg hidden-sm hidden-xs">
                            <a href="/admin_interview/edit?id=<?=$tRow['id']?>" class="btn btn-blue btn-xs tooltips" data-placement="top" data-original-title="编辑"><i class="fa fa-edit"></i></a>
                            <a href="#" onclick="cg_confirm_del('/admin_interview/del?id=<?=$tRow['id']?>','/admin_interview')" class="btn btn-orange btn-xs tooltips demo_4" data-placement="top" data-original-title="删除"><i class="fa fa-times"></i></a>
                           
                        </td>
                    </tr>
                    <?}?>
                </table>
                <?=$tShow?>
            </div>
        </div>
        <div class="subviews">
            <div class="subviews-container"></div>
        </div>
    </div>
    <!-- end: PAGE -->
</div>
<!-- end: MAIN CONTAINER -->

<script>
$('#search').click(function(){
            $('form').submit();
});
</script>
<?php include PATH_TPL."/admin/tpl.footer.phtml"?>

